package com.e.dianshang.service.impl;

import com.e.dianshang.mapper.GoodsMapper;
import com.e.dianshang.pojo.Goods;
import com.e.dianshang.service.GoodsService;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: HP
 * Date: 2020/11/11 14:50
 * Description:
 */
@Data
@NoArgsConstructor
@Service("GoodsService")
public class GoodsServiceImpl implements GoodsService {

    @Resource
    GoodsMapper goodsMapper;

    @Override
    public int insert(Goods goods) {
        return goodsMapper.insertSelective(goods);
    }

    @Override
    public List<Goods> findByClassThreeId(Integer SId) {
        return goodsMapper.findByClassThreeId(SId);
    }

    @Override
    public List<Goods> findGoodsDescById01(Integer id) {
        return goodsMapper.findGoodsDescById01(id);
    }

    @Override
    public List<Goods> findGoodsDescById02(Integer id) {
        return goodsMapper.findGoodsDescById02(id);
    }

    @Override
    public List<Goods> findGoodsDescById03(Integer id) {
        return goodsMapper.findGoodsDescById03(id);
    }


}
